import request from '@/utils/request'

//列表
export function list(data) {
  return request({
    url: '/seller/account/list',
    method: 'get',
    data: data
  })
}

// 查看本人账户信息
export function info(type) {
  return request({
    url: '/seller/account/info/'+type,
    method: 'get'
  })
}

//充值
export function recharge(data,code) {
	return request({
	  url: `/seller/account/recharge/${code}`,
	  method: 'post',
	  data: data
	})
}

//钱包列表
export function bizConfiglist() {
  return request({
    url: '/retail/bizConfig/list',
    method: 'get'
  })
}

//提现
export function withdrawal(data,code) {
	return request({
	  url: `/seller/account/withdrawal/${code}`,
	  method: 'post',
	  data: data
	})
}

//明细
export function history(data) {
	return request({
	  url: '/seller/account/history',
	  method: 'get',
	  data: data
	})
}

//额度转换
export function convert(amount,code) {
	return request({
	  url: '/seller/account/convert/'+amount+'/'+code,
	  method: 'post'
	})
}

export function transfer(data,code) {
	return request({
	  url: '/seller/account/transfer/'+code,
	  method: 'post',
	  data: data
	})
}

